import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      redirect: '/infoChart',
      component: () => import('@/layout/layout'),
      children : [
        //信息主题分析
        {
          path : '/infoChart',
          name : 'infoChart',
          component : () => import('@/views/infomation/infomation_chart.vue')
        },
        {
          path : '/infoCase',
          name : 'infoCase',
          component : () => import('@/views/infomation/infomation_case.vue')
        },
        {
          path : '/infoPerson',
          name : 'infoPerson',
          component : () => import('@/views/infomation/infomation_person.vue')
        },
        {
          path : '/keyperson',
          name : 'keyperson',
          component : () => import('@/views/keyperson.vue')
        },
        {
          path : '/criminalCase',
          name : 'criminalCase',
          component : () => import('@/views/criminal/criminalCase.vue')
        },
        {
          path : '/criminalPolice',
          name : 'criminalPolice',
          component : () => import('@/views/criminal/criminalPolice.vue')
        },
        {
          path : '/searchApp',
          name : 'searchApp',
          component : () => import('@/views/searchApp/searchApp.vue')
        },
        {
          path : '/crimeAnal',
          name : 'crimeAnal',
          component : () => import('@/views/searchApp/crimeAnal.vue')
        },
        {
          path : '/cbafx',
          name : 'cbafx',
          component : () => import('@/views/cbafx/cba.vue')
        },
      ]
    },
    {
      path: '/persondetail/',
      name: 'persondetail',
      component: () => import('@/views/detail/infomation_person_detail.vue')
    },
    {
      path: '/casedetail/',
      name: 'casedetail',
      component: () => import('@/views/detail/infomation_case_detail.vue')
    },
    {
      path: '/keyPersondetail/',
      name: 'keyPersondetail',
      component: () => import('@/views/detail/infomation_keyPerson_detail.vue')
    }
  ]
})

